package Meituan.threadPoolTest;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author: leiwenkang
 * @date: 2019/7/16
 * @time: 10:32
 */
public class ThreadPoolUtils {
    public static final ExecutorService BLOCK_BANNER_POOL =
            new ThreadPoolExecutor(5,
                    10,
                    10L,
                    TimeUnit.MILLISECONDS,
                    new LinkedBlockingQueue<>(100),
                    new ThreadPoolExecutor.CallerRunsPolicy());

}
